Assuming you have installed Java inc:\Program Files\java\jdkdirectory:
Right-click on 'My Computer' and select 'Properties'.
Click on the 'Environment variables' button under the 'Advanced' tab.
Now alter the 'Path' variableso that it also contains the path to the Java executable.
Example, if the path is currently set to 'C:\WINDOWS\SYSTEM32', then change your path to read 'C:\WINDOWS\SYSTEM32;c:\Program Files\java\jdk\bin'.
Setting up the path for windows 95/98/ME: Assuming you have installed Java inc:\
Program Files\java\jdkdirectory:
Edit the 'C:\autoexec.bat' fileand add the following line at the end:
'SET PATH=%PATH%;C:\Program Files\java\jdk\bin'
Setting up the path for Linux, UNIX, Solaris, FreeBSD: Environment variable PATH should be set to point to where the java binaries have been installed.
Refer toyour shell documentation if you have trouble doing this.
Example, if you usebashas your shell, then you would add the following line to the end of your '.bashrc: export PATH=/path/to/java:$PATH'
Popular Java Editors: To write your java programsyou will need a text editor. There are even more sophisticated IDE available inthe market.
But for now, you can consider one of the following:
Notepad :On Windows machine you can use any simple text editor like Notepad (Recommended for this tutorial), TextPad.
Netbeans :is a Java IDE that is open source and freewhich can be downloaded from http://www.netbeans.org /index.html.
Eclipse :is also a java IDE developed by the eclipse open source community and can be downloaded from http://www.eclipse.org/.